-- || Created by Revelse

Core = inherit(Object)

function Core:constructor()
	print("Loading core...")
	
	mysql = MySQL:new()
	MapManager:new()
	DamageLog:new()
	LoginRegister:new()
	PlayerManager:new()
	GamemodeManager:new()
	GamemodeManager:getSingleton():ready()
end

function Core:destructor()
	delete(MySQL:getSingleton())
	delete(MapManager:getSingleton())
	delete(DamageLog:getSingleton())
	delete(LoginRegister:getSingleton())
	delete(PlayerManager:getSingleton())
	delete(GamemodeManager:getSingleton())
end